/**
 * Author shuqi
 * Rev
 * Date: 2021-07-31 16:50
 * <p>
 * Copyright (C) 2021 Seeyon, Inc. All rights reserved.
 * <p>
 * This software is the proprietary information of Seeyon, Inc.
 * Use is subject to license terms.
 * @company seeyon.com
 * @author shuqi
 * @since V5 V7.1
 */
package com.synnex.springboot.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.DispatcherServlet;

import javax.servlet.ServletContainerInitializer;

/**
 * 配置初始化bean
 * @description
 * @date 2021-07-31 16:50
 * @author xiaol
 */
@Configuration
public class AppConfig {

	@Bean(name = "myDispatcherServlet")
	public DispatcherServlet dispatcherServlet() {
		return new DispatcherServlet();
	}

	@Bean
	public ServletContainerInitializer servletContainerInitializer() {
		return new MySpringServletContainerInitializer();
	}

}
